package com.videoplatform;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;

@SpringBootApplication
@EnableJpaRepositories(basePackages = "com.videoplatform.repository")
public class VideoPlatformApplication {

    public static void main(String[] args) {
        SpringApplication.run(VideoPlatformApplication.class, args);
        System.out.println("========================================");
        System.out.println("🚀 VideoTech Platform Started!");
        System.out.println("📱 访问地址: http://localhost:7777");
        System.out.println("🗄️ 数据库控制台: http://localhost:7777/h2-console");
        System.out.println("📊 数据库URL: jdbc:h2:mem:videoplatform");
        System.out.println("👤 用户名: sa");
        System.out.println("🔑 密码: password");
        System.out.println("========================================");
    }

}
